take one's ball and go home

take one's ball and go home
(idiomatic) To cease participating in an activity that has turned to one's disadvantage, especially out of spite, or in a way that prevents others from participating as well.